<div id="statusListener"></div>
<?php 
$listener->add(array('1', '2'));
//$javascript->startup("$.listen(URL, 'ss');");
?>
<script>
$(document).bind('statusUpdate', function(e, id, status){
	$("#statusListener").html("Id: "+id+" just got a new status "+status);
});
</script>